package com.study;

import java.util.function.BiFunction;

/**
 * @Description: TODO
 * @Author: csc
 * @Date: 2024/9/28 10:10
 * @Version: 1.0
 **/
public class Bifauntion {


    public static void main(String[] args) {



        /**

         #启动命令：
         docker run -u root -d \
         -p 10240:8080 -p 10241:50000 \
         -v /mount/jenkins/jenkins_data/:/var/jenkins_home/ \
         -v /var/run/docker.sock:/var/run/docker.sock \
         -v /usr/bin/docker:/usr/bin/docker \
         -v /usr/local/java/jdk1.8.0_361:/usr/local/java \
         -v /usr/local/maven/apache-maven-3.8.4:/usr/local/maven \
         -e JAVA_OPTS="-Dorg.apache.commons.jelly.tags.fmt.timeZone='Asia/Shanghai" \
         --name jenkins jenkins/jenkins

         ————————————————

         版权声明：本文为博主原创文章，遵循 CC 4.0 BY-SA 版权协议，转载请附上原文出处链接和本声明。

         原文链接：https://blog.csdn.net/weixin_44000133/article/details/132189696

         */
        BiFunction<Integer, Integer, Integer> add = (num1, num2) -> num1 + num2;
        int result = add.apply(5, 10);
        System.out.println("Sum: " + result); // 输出 "Sum: 15"

    }

}
